<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8"/>
    <meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible"/>
    <title>产品列表页</title>
    <link href="/static/search/assets/img/favicon.ico" rel="icon">

    <link href="/static/search/css/webbase.css" rel="stylesheet" type="text/css"/>
    <link href="/static/search/css/pages-list.css" rel="stylesheet" type="text/css"/>
    <link href="/static/search/css/widget-cartPanelView.css" rel="stylesheet" type="text/css"/>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

    <script th:inline="javascript">
        //向字符串类扩展方法
        String.prototype.contains = function (str) {
            return this.indexOf(str) > -1;
        }

        function search() {
            let keywords = $("#keywords").val();
            console.log("keywords:", keywords);
            drawPageNav();
            location.href = `/search?keywords=${keywords}`
        }

        //1. 分类查询
        function addCategory(cate) {
            // console.log("cate:",cate,",href:",location.href);
            drawPageNav();
            location.href = replaceParamVal(location.href, "category", cate);
        }

        //2. 品牌查询
        function addBrand(brand) {
            drawPageNav();
            location.href = replaceParamVal(location.href, "brand", brand);
        }

        //3. 规格查询
        function addSpec(specName, optionName) {    // “内存”:“16G”
            drawPageNav();
            location.href = replaceParamVal(location.href, "spec", specName + ":" + optionName, true);
        }

        //4. 价格区间查询
        function addPrice(price) {    //
            drawPageNav();
            location.href = replaceParamVal(location.href, "price", price);
        }

        //5. 排序
        function addSortParam(sort) {    //
            drawPageNav();
            location.href = replaceParamVal(location.href, "sort", sort);
            console.log("aa:", aa);
        }

        //6. 绘制分页导航
        function drawPageNav() {
            //6.1 确定首页与尾页
            let first = 1;
            let last = [[${resultMap.totalPage}]];
            let totalPage = [[${resultMap.totalPage}]];
            let page = parseInt([[${param.page == null ? 1 : param.page}]]);
            //6.2 定义代表前后省略号的变量
            let firstDot = true;
            let lastDot = true;
            console.log("page:", page);
            //6.3 处理分页逻辑
            if (totalPage > 5) {
                if (page <= 3) {
                    last = 5;
                    firstDot = false;
                } else if (page >= totalPage - 2) {
                    first = totalPage - 4;
                    lastDot = false;
                } else {
                    first = page - 2;
                    last = page + 2;
                    firstDot = true;
                    lastDot = true;
                }
            } else {
                firstDot = false;
                lastDot = false;
            }
            console.log("first:", first, ",last:", last);
            //6.4 绘制分页导航
            let str = "";
            for (let i = first; i <= last; i++) {
                console.log("i:", i);
                //str += "<li class="+ page == i ? 'active' : '' +">"
                str += `<li class="${page == i ? 'active' : ''}">`;
                str += "<a href='javascript:;' onclick=findByPage(" + i + ")>" + i + "</a>";
                str += "</li>";
            }
            console.log("str:", str);
            $($(".pagination-large ul li")[1]).after(str);


            //6.5 添加前后的省略号
            $(".dotted").css("display", "none");
            if (firstDot) {
                $(".first").css("display", "inline-block");
            }
            if (lastDot) {
                $(".last").css("display", "inline-block");
            }

        }

        function findByPage(page) {
            location.href = replaceParamVal(location.href, "page", page);
        }


        //当窗体加载时，我们重新绘
        $(function () {
            drawPageNav();
            //1. 判断品牌列表及规格列表是否有值，如果没值就不再显示
            let brandList = [[${resultMap.brandList}]];
            let specList = [[${resultMap.specList}]];
            let categorys = [[${resultMap.categoryList}]]
            console.log("brandList:", brandList);
            console.log("specList:", specList);
            if (brandList.length == 0) {
                $(".brand").css("display", "none");
            }
            if (specList.length == 0) {
                $(".spec").css("display", "none");
            }
            if (categorys.length == 0) {
                $(".category").css("display", "none");
            }
        })

        /**
         * 功能：路径替换函数
         * @param url 目前的url
         * @param paramName 需要替换的参数属性名
         * @param replaceVal 需要替换的参数的新属性值
         * @param forceAdd 该参数是否可以重复查询(spec=网络:4G&spec=机身内存：32G),即一次可以查询多个规格
         * @returns {string} 替换或添加后的url
         */
        function replaceParamVal(url, paramName, replaceVal, forceAdd = false) {
            let oUrl = decodeURI(url.toString());
            let nUrl = "";
            if (oUrl.contains(paramName + "=")) {

                let split = replaceVal.toString().split(":");
                let str = paramName + "=" + split[0];

                if (forceAdd && !oUrl.contains(str)) {   //第一次时向url添加内容
                    if (oUrl.contains("?")) {
                        nUrl = oUrl + "&" + paramName + "=" + replaceVal;
                    } else {
                        nUrl = oUrl + "?" + paramName + "=" + replaceVal;
                    }
                } else {
                    // /category=手机/ig
                    if (paramName.startsWith("spec")) {   //替换规格内容
                        let re = eval('/(' + str + ':)([^&]*)/gi');
                        nUrl = oUrl.replace(re, str + ':' + split[1]);
                    } else {							//替换除规格外的其它内容
                        let re = eval('/(' + paramName + '=)([^&]*)/gi');
                        nUrl = oUrl.replace(re, paramName + '=' + replaceVal);
                    }
                }
            } else {
                // http://localhost:9001/student/list?username=aaa&pwd=123
                if (oUrl.contains("?")) {		//包含?
                    nUrl = oUrl + "&" + paramName + "=" + replaceVal;
                } else {						//不包含?
                    nUrl = oUrl + "?" + paramName + "=" + replaceVal;
                }
            }
            return nUrl;
        }
    </script>

</head>

<body>
<!-- 头部栏位 -->
<!--页面顶部-->
<div id="nav-bottom">
    <!--顶部-->
    <div class="nav-top">
        <div class="top">
            <div class="py-container">
                <div class="shortcut">
                    <ul class="fl">
                        <li class="f-item">泽易购欢迎您！</li>
                        <li class="f-item">请
                            <a href="/static/search/login.html" target="_blank">登录</a>　<span>
										<a href="/static/search/register.html" target="_blank">免费注册</a></span></li>
                    </ul>
                    <ul class="fr">
                        <li class="f-item">我的订单</li>
                        <li class="f-item space"></li>
                        <li class="f-item">
                            <a href="/static/search/home.html" target="_blank">我的泽易购</a>
                        </li>
                        <li class="f-item space"></li>
                        <li class="f-item">泽易购会员</li>
                        <li class="f-item space"></li>
                        <li class="f-item">企业采购</li>
                        <li class="f-item space"></li>
                        <li class="f-item">关注泽易购</li>
                        <li class="f-item space"></li>
                        <li class="f-item" id="service">
                            <span>客户服务</span>
                            <ul class="service">
                                <li>
                                    <a href="/static/search/cooperation.html" target="_blank">合作招商</a>
                                </li>
                                <li>
                                    <a href="/static/search/shoplogin.html" target="_blank">商家后台</a>
                                </li>
                                <li>
                                    <a href="/static/search/cooperation.html" target="_blank">合作招商</a>
                                </li>
                                <li>
                                    <a href="#">商家后台</a>
                                </li>
                            </ul>
                        </li>
                        <li class="f-item space"></li>
                        <li class="f-item">网站导航</li>
                    </ul>
                </div>
            </div>
        </div>

        <!--头部-->
        <div class="header">
            <div class="py-container">
                <div class="yui3-g Logo">
                    <div class="yui3-u Left logoArea">
                        <a class="logo-bd" href="/static/search/JD-index.html" target="_blank" title="泽易购"></a>
                    </div>
                    <div class="yui3-u Center searchArea">
                        <div class="search">
                            <form action="" class="sui-form form-inline">
                                <!--searchAutoComplete-->
                                <div class="input-append">
                                    <input class="input-error input-xxlarge" id="keywords" th:value="${vo.keywords}"
                                           type="text"/>
                                    <button class="sui-btn btn-xlarge btn-danger" th:onclick="search()" type="button">
                                        搜索
                                    </button>
                                </div>
                            </form>
                        </div>
                        <div class="hotwords">
                            <ul>
                                <li class="f-item">泽易购首发</li>
                                <li class="f-item">亿元优惠</li>
                                <li class="f-item">9.9元团购</li>
                                <li class="f-item">每满99减30</li>
                                <li class="f-item">亿元优惠</li>
                                <li class="f-item">9.9元团购</li>
                                <li class="f-item">办公用品</li>

                            </ul>
                        </div>
                    </div>
                    <div class="yui3-u Right shopArea">
                        <div class="fr shopcar">
                            <div class="show-shopcar" id="shopcar">
                                <span class="car"></span>
                                <a class="sui-btn btn-default btn-xlarge" href="/static/search/cart.html"
                                   target="_blank">
                                    <span>我的购物车</span>
                                    <i class="shopnum">0</i>
                                </a>
                                <div class="clearfix shopcarlist" id="shopcarlist" style="display:none">
                                    <p>"啊哦，你的购物车还没有商品哦！"</p>
                                    <p>"啊哦，你的购物车还没有商品哦！"</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="yui3-g NavList">
                    <div class="yui3-u Left all-sort">
                        <h4>全部商品分类</h4>
                    </div>
                    <div class="yui3-u Center navArea">
                        <ul class="nav">
                            <li class="f-item">服装城</li>
                            <li class="f-item">美妆馆</li>
                            <li class="f-item">品优超市</li>
                            <li class="f-item">全球购</li>
                            <li class="f-item">闪购</li>
                            <li class="f-item">团购</li>
                            <li class="f-item">有趣</li>
                            <li class="f-item">
                                <a href="/static/search/seckill-index.html" target="_blank">秒杀</a>
                            </li>
                        </ul>
                    </div>
                    <div class="yui3-u Right"></div>
                </div>
            </div>
        </div>
    </div>
</div>


<!--list-content-->
<div class="main">
    <div class="py-container">
        <!--bread-->
        <div class="bread">
            <ul class="fl sui-breadcrumb">
                <li>
                    <a href="#">全部结果 [[${resultMap.total}]]条!</a>
                </li>
                <li class="active">智能手机</li>
            </ul>
            <ul class="tags-choose">
                <li class="tag">全网通<i class="sui-icon icon-tb-close"></i></li>
                <li class="tag">63G<i class="sui-icon icon-tb-close"></i></li>
            </ul>
            <form class="fl sui-form form-dark">
                <div class="input-control control-right">
                    <input type="text"/>
                    <i class="sui-icon icon-touch-magnifier"></i>
                </div>
            </form>
            <div class="clearfix"></div>
        </div>
        <!--selector-->
        <div class="clearfix selector">
            <div class="type-wrap category">
                <div class="fl key">商品分类</div>
                <div class="fl value">
                    <a href="javascript:" th:each="cate : ${resultMap.categoryList}"
                       th:onclick="addCategory([[${cate}]])">[[${cate}]] </a>
                </div>
                <div class="fl ext"></div>
            </div>
            <div class="type-wrap logo brand">
                <div class="fl key brand">品牌</div>
                <div class="value logos">
                    <ul class="logo-list">
                        <li th:each="brand : ${resultMap.brandList}" th:onclick="addBrand([[${brand.text}]])">
                            [[${brand.text}]]
                        </li>

                    </ul>
                </div>
                <div class="ext">
                    <a class="sui-btn" href="javascript:void(0);">多选</a>
                    <a href="javascript:void(0);">更多</a>
                </div>
            </div>
            <div class="type-wrap spec" th:each="spec : ${resultMap.specList}">
                <div class="fl key">[[${spec.text}]]</div>
                <div class="fl value">
                    <ul class="type-list">
                        <li th:each="option : ${spec.options}"
                            th:onclick="addSpec([[${spec.text}]],[[${option.optionName}]])">
                            <a>[[${option.optionName}]]</a>
                        </li>

                    </ul>
                </div>
                <div class="fl ext"></div>
            </div>

            <div class="type-wrap">
                <div class="fl key">价格</div>
                <div class="fl value">
                    <ul class="type-list">
                        <li>
                            <a th:onclick="addPrice('0-500')">0-500元</a>
                        </li>
                        <li>
                            <a th:onclick="addPrice('500-1000')">500-1000元</a>
                        </li>
                        <li>
                            <a th:onclick="addPrice('1000-1500')">1000-1500元</a>
                        </li>
                        <li>
                            <a th:onclick="addPrice('1500-2000')">1500-2000元</a>
                        </li>
                        <li>
                            <a th:onclick="addPrice('2000-3000')">2000-3000元 </a>
                        </li>
                        <li>
                            <a th:onclick="addPrice('3000-*')">3000元以上</a>
                        </li>
                    </ul>
                </div>
                <div class="fl ext">
                </div>
            </div>
            <div class="type-wrap">
                <div class="fl key">更多筛选项</div>
                <div class="fl value">
                    <ul class="type-list">
                        <li>
                            <a>特点</a>
                        </li>
                        <li>
                            <a>系统</a>
                        </li>
                        <li>
                            <a>手机内存 </a>
                        </li>
                        <li>
                            <a>单卡双卡</a>
                        </li>
                        <li>
                            <a>其他</a>
                        </li>
                    </ul>
                </div>
                <div class="fl ext">
                </div>
            </div>
        </div>
        <!--details-->
        <div class="details">
            <div class="sui-navbar">
                <div class="navbar-inner filter">
                    <ul class="sui-nav">
                        <li class="active">
                            <a href="#">综合</a>
                        </li>
                        <li>
                            <a href="#">销量</a>
                        </li>
                        <li>
                            <a href="#">新品</a>
                        </li>
                        <li>
                            <a href="#">评价</a>
                        </li>
                        <li>
                            <a th:onclick="addSortParam('price:asc')">价格↑</a>
                        </li>
                        <li>
                            <a th:onclick="addSortParam('price:desc')">价格↓</a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="goods-list">
                <ul class="yui3-g">
                    <li class="yui3-u-1-5" th:each="item : ${resultMap.rows}">
                        <div class="list-wrap">
                            <div class="p-img">
                                <a href="/static/search/item.html" target="_blank">
                                    <img th:src="${item.image}"/></a>
                            </div>
                            <div class="price">
                                <strong>
                                    <em>¥</em>
                                    <i th:text="${item.price}"></i>
                                    <!--<i>[[${item.price}]]</i>-->
                                </strong>
                            </div>
                            <div class="attr">
                                <em th:utext="${item.title}"></em>
                            </div>
                            <div class="cu">
                                <em></em>
                            </div>
                            <div class="commit">
                                <i class="command">已有2000人评价</i>
                            </div>
                            <div class="operate">
                                <a class="sui-btn btn-bordered btn-danger" href="/static/search/success-cart.html"
                                   target="_blank">加入购物车</a>
                                <a class="sui-btn btn-bordered" href="javascript:void(0);">对比</a>
                                <a class="sui-btn btn-bordered" href="javascript:void(0);">关注</a>
                            </div>
                        </div>
                    </li>

                </ul>
            </div>
            <div class="fr page">
                <div class="sui-pagination pagination-large">
                    <ul>
                        <li class="prev disabled">
                            <a href="#">«上一页</a>
                        </li>
                        <li class="dotted first"><span>...</span></li>
                        <li class="dotted last"><span>...</span></li>

                        <li class="next">
                            <a href="#">下一页»</a>
                        </li>
                    </ul>
                    <div><span>共[[${resultMap.totalPage}]]页&nbsp;</span><span>
      到第
      <input class="page-num" type="text">
      页 <button class="page-confirm" onclick="alert(1)">确定</button></span></div>
                </div>
            </div>
        </div>
        <!--hotsale-->
        <div class="clearfix hot-sale">
            <h4 class="title">热卖商品</h4>
            <div class="hot-list">
                <ul class="yui3-g">
                    <li class="yui3-u-1-4">
                        <div class="list-wrap">
                            <div class="p-img">
                                <img src="/static/search/img/like_01.png"/>
                            </div>
                            <div class="attr">
                                <em>Apple苹果iPhone 6s (A1699)</em>
                            </div>
                            <div class="price">
                                <strong>
                                    <em>¥</em>
                                    <i>4088.00</i>
                                </strong>
                            </div>
                            <div class="commit">
                                <i class="command">已有700人评价</i>
                            </div>
                        </div>
                    </li>
                    <li class="yui3-u-1-4">
                        <div class="list-wrap">
                            <div class="p-img">
                                <img src="/static/search/img/like_03.png"/>
                            </div>
                            <div class="attr">
                                <em>金属A面，360°翻转，APP下单省300！</em>
                            </div>
                            <div class="price">
                                <strong>
                                    <em>¥</em>
                                    <i>4088.00</i>
                                </strong>
                            </div>
                            <div class="commit">
                                <i class="command">已有700人评价</i>
                            </div>
                        </div>
                    </li>
                    <li class="yui3-u-1-4">
                        <div class="list-wrap">
                            <div class="p-img">
                                <img src="/static/search/img/like_04.png"/>
                            </div>
                            <div class="attr">
                                <em>256SSD商务大咖，完爆职场，APP下单立减200</em>
                            </div>
                            <div class="price">
                                <strong>
                                    <em>¥</em>
                                    <i>4068.00</i>
                                </strong>
                            </div>
                            <div class="commit">
                                <i class="command">已有20人评价</i>
                            </div>
                        </div>
                    </li>
                    <li class="yui3-u-1-4">
                        <div class="list-wrap">
                            <div class="p-img">
                                <img src="/static/search/img/like_02.png"/>
                            </div>
                            <div class="attr">
                                <em>Apple苹果iPhone 6s (A1699)</em>
                            </div>
                            <div class="price">
                                <strong>
                                    <em>¥</em>
                                    <i>4088.00</i>
                                </strong>
                            </div>
                            <div class="commit">
                                <i class="command">已有700人评价</i>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!-- 底部栏位 -->
<!--页面底部-->
<div class="clearfix footer">
    <div class="py-container">
        <div class="footlink">
            <div class="Mod-service">
                <ul class="Mod-Service-list">
                    <li class="grid-service-item intro  intro1">

                        <i class="serivce-item fl"></i>
                        <div class="service-text">
                            <h4>正品保障</h4>
                            <p>正品保障，提供发票</p>
                        </div>

                    </li>
                    <li class="grid-service-item  intro intro2">

                        <i class="serivce-item fl"></i>
                        <div class="service-text">
                            <h4>正品保障</h4>
                            <p>正品保障，提供发票</p>
                        </div>

                    </li>
                    <li class="grid-service-item intro  intro3">

                        <i class="serivce-item fl"></i>
                        <div class="service-text">
                            <h4>正品保障</h4>
                            <p>正品保障，提供发票</p>
                        </div>

                    </li>
                    <li class="grid-service-item  intro intro4">

                        <i class="serivce-item fl"></i>
                        <div class="service-text">
                            <h4>正品保障</h4>
                            <p>正品保障，提供发票</p>
                        </div>

                    </li>
                    <li class="grid-service-item intro intro5">

                        <i class="serivce-item fl"></i>
                        <div class="service-text">
                            <h4>正品保障</h4>
                            <p>正品保障，提供发票</p>
                        </div>

                    </li>
                </ul>
            </div>
            <div class="clearfix Mod-list">
                <div class="yui3-g">
                    <div class="yui3-u-1-6">
                        <h4>购物指南</h4>
                        <ul class="unstyled">
                            <li>购物流程</li>
                            <li>会员介绍</li>
                            <li>生活旅行/团购</li>
                            <li>常见问题</li>
                            <li>购物指南</li>
                        </ul>

                    </div>
                    <div class="yui3-u-1-6">
                        <h4>配送方式</h4>
                        <ul class="unstyled">
                            <li>上门自提</li>
                            <li>211限时达</li>
                            <li>配送服务查询</li>
                            <li>配送费收取标准</li>
                            <li>海外配送</li>
                        </ul>
                    </div>
                    <div class="yui3-u-1-6">
                        <h4>支付方式</h4>
                        <ul class="unstyled">
                            <li>货到付款</li>
                            <li>在线支付</li>
                            <li>分期付款</li>
                            <li>邮局汇款</li>
                            <li>公司转账</li>
                        </ul>
                    </div>
                    <div class="yui3-u-1-6">
                        <h4>售后服务</h4>
                        <ul class="unstyled">
                            <li>售后政策</li>
                            <li>价格保护</li>
                            <li>退款说明</li>
                            <li>返修/退换货</li>
                            <li>取消订单</li>
                        </ul>
                    </div>
                    <div class="yui3-u-1-6">
                        <h4>特色服务</h4>
                        <ul class="unstyled">
                            <li>夺宝岛</li>
                            <li>DIY装机</li>
                            <li>延保服务</li>
                            <li>泽易购E卡</li>
                            <li>泽易购通信</li>
                        </ul>
                    </div>
                    <div class="yui3-u-1-6">
                        <h4>帮助中心</h4>
                        <img src="/static/search/img/wx_cz.jpg">
                    </div>
                </div>
            </div>
            <div class="Mod-copyright">
                <ul class="helpLink">
                    <li>关于我们<span class="space"></span></li>
                    <li>联系我们<span class="space"></span></li>
                    <li>关于我们<span class="space"></span></li>
                    <li>商家入驻<span class="space"></span></li>
                    <li>营销中心<span class="space"></span></li>
                    <li>友情链接<span class="space"></span></li>
                    <li>关于我们<span class="space"></span></li>
                    <li>营销中心<span class="space"></span></li>
                    <li>友情链接<span class="space"></span></li>
                    <li>关于我们</li>
                </ul>
                <p>地址：深圳市大冲国际</p>
            </div>
        </div>
    </div>
</div>
<!--页面底部END-->
<!--侧栏面板开始-->
<div class="J-global-toolbar">
    <div class="toolbar-wrap J-wrap">
        <div class="toolbar">
            <div class="toolbar-panels J-panel">

                <!-- 购物车 -->
                <div class="J-content toolbar-panel tbar-panel-cart toolbar-animate-out" style="visibility: hidden;">
                    <h3 class="tbar-panel-header J-panel-header">
                        <a class="title" href="/static/search/"><i></i><em class="title">购物车</em></a>
                        <span class="close-panel J-close" onclick="cartPanelView.tbar_panel_close('cart');"></span>
                    </h3>
                    <div class="tbar-panel-main">
                        <div class="tbar-panel-content J-panel-content">
                            <div class="tbar-tipbox hide" id="J-cart-tips">
                                <div class="tip-inner">
                                    <span class="tip-text">还没有登录，登录后商品将被保存</span>
                                    <a class="tip-btn J-login" href="#none">登录</a>
                                </div>
                            </div>
                            <div id="J-cart-render">
                                <!-- 列表 -->
                                <div class="tbar-cart-list" id="cart-list">
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 小计 -->
                    <div class="tbar-panel-footer J-panel-footer" id="cart-footer">
                        <div class="tbar-checkout">
                            <div class="jtc-number"><strong class="J-count" id="cart-number">0</strong>件商品</div>
                            <div class="jtc-sum"> 共计：<strong class="J-total" id="cart-sum">¥0</strong></div>
                            <a class="jtc-btn J-btn" href="#none" target="_blank">去购物车结算</a>
                        </div>
                    </div>
                </div>

                <!-- 我的关注 -->
                <div class="J-content toolbar-panel tbar-panel-follow" data-name="follow" style="visibility: hidden;">
                    <h3 class="tbar-panel-header J-panel-header">
                        <a class="title" href="#" target="_blank"> <i></i> <em class="title">我的关注</em> </a>
                        <span class="close-panel J-close" onclick="cartPanelView.tbar_panel_close('follow');"></span>
                    </h3>
                    <div class="tbar-panel-main">
                        <div class="tbar-panel-content J-panel-content">
                            <div class="tbar-tipbox2">
                                <div class="tip-inner"><i class="i-loading"></i></div>
                            </div>
                        </div>
                    </div>
                    <div class="tbar-panel-footer J-panel-footer"></div>
                </div>

                <!-- 我的足迹 -->
                <div class="J-content toolbar-panel tbar-panel-history toolbar-animate-in" style="visibility: hidden;">
                    <h3 class="tbar-panel-header J-panel-header">
                        <a class="title" href="#" target="_blank"> <i></i> <em class="title">我的足迹</em> </a>
                        <span class="close-panel J-close" onclick="cartPanelView.tbar_panel_close('history');"></span>
                    </h3>
                    <div class="tbar-panel-main">
                        <div class="tbar-panel-content J-panel-content">
                            <div class="jt-history-wrap">
                                <ul>
                                    <!--<li class="jth-item">
                                    <a href="#" class="img-wrap"> <img src="/static/search/.portal/img/like_03.png" height="100" width="100" /> </a>
                                    <a class="add-cart-button" href="#" target="_blank">加入购物车</a>
                                    <a href="#" target="_blank" class="price">￥498.00</a>
                                </li>
                                <li class="jth-item">
                                    <a href="#" class="img-wrap"> <img src="/static/search/portal/img/like_02.png" height="100" width="100" /></a>
                                    <a class="add-cart-button" href="#" target="_blank">加入购物车</a>
                                    <a href="#" target="_blank" class="price">￥498.00</a>
                                </li>-->
                                </ul>
                                <a class="history-bottom-more" href="#" target="_blank">查看更多足迹商品 &gt;&gt;</a>
                            </div>
                        </div>
                    </div>
                    <div class="tbar-panel-footer J-panel-footer"></div>
                </div>

            </div>

            <div class="toolbar-header"></div>

            <!-- 侧栏按钮 -->
            <div class="toolbar-tabs J-tab">
                <div class="toolbar-tab tbar-tab-cart" data="购物车" onclick="cartPanelView.tabItemClick('cart')"
                     tag="cart">
                    <i class="tab-ico"></i>
                    <em class="tab-text"></em>
                    <span class="tab-sub J-count " id="tab-sub-cart-count">0</span>
                </div>
                <div class="toolbar-tab tbar-tab-follow" data="我的关注" onclick="cartPanelView.tabItemClick('follow')"
                     tag="follow">
                    <i class="tab-ico"></i>
                    <em class="tab-text"></em>
                    <span class="tab-sub J-count hide">0</span>
                </div>
                <div class="toolbar-tab tbar-tab-history" data="我的足迹" onclick="cartPanelView.tabItemClick('history')"
                     tag="history">
                    <i class="tab-ico"></i>
                    <em class="tab-text"></em>
                    <span class="tab-sub J-count hide">0</span>
                </div>
            </div>

            <div class="toolbar-footer">
                <div class="toolbar-tab tbar-tab-top">
                    <a href="#"> <i class="tab-ico  "></i> <em class="footer-tab-text">顶部</em> </a>
                </div>
                <div class="toolbar-tab tbar-tab-feedback">
                    <a href="#" target="_blank"> <i class="tab-ico"></i> <em class="footer-tab-text ">反馈</em> </a>
                </div>
            </div>

            <div class="toolbar-mini"></div>

        </div>

        <div id="J-toolbar-load-hook"></div>

    </div>
</div>
<!--购物车单元格 模板-->
<script id="tbar-cart-item-template" type="text/template">
    <div class="tbar-cart-item">
        <div class="jtc-item-promo">
            <em class="promo-tag promo-mz">满赠<i class="arrow"></i></em>
            <div class="promo-text">已购满600元，您可领赠品</div>
        </div>
        <div class="jtc-item-goods">
            <span class="p-img"><a href="#" target="_blank"><img src="/static/search/{2}" alt="{1}" height="50"
                                                                 width="50"/></a></span>
            <div class="p-name">
                <a href="#">{1}</a>
            </div>
            <div class="p-price"><strong>¥{3}</strong>×{4}</div>
            <a href="#none" class="p-del J-del">删除</a>
        </div>
    </div>
</script>
<!--侧栏面板结束-->
<script src="/static/search/js/plugins/jquery/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#service").hover(function () {
            $(".service").show();
        }, function () {
            $(".service").hide();
        });
        $("#shopcar").hover(function () {
            $("#shopcarlist").show();
        }, function () {
            $("#shopcarlist").hide();
        });

    })
</script>
<script src="/static/search/js/model/cartModel.js" type="text/javascript"></script>
<script src="/static/search/js/czFunction.js" type="text/javascript"></script>
<script src="/static/search/js/plugins/jquery.easing/jquery.easing.min.js" type="text/javascript"></script>
<script src="/static/search/js/plugins/sui/sui.min.js" type="text/javascript"></script>
<script src="/static/search/js/widget/cartPanelView.js" type="text/javascript"></script>
</body>

</html>